<template>
    <van-nav-bar :border="false" title="提示音设置" left-arrow @click-left="onClickLeft"></van-nav-bar>
</template>

<script>
import common from "../../../../util/index";



export default {

  components: {
    [NavBar.name]:NavBar,
  },

  computed: {
  },

  data() {
    return {
      soundPlayer:null,
    };
  },



  methods: {
    onClickLeft(){
      //关闭音效
      const localSoundPath = this.getPrefsSync("local.soundPath");
      this.soundPlayer = this.getModule("soundPlayer");
      console.log(this.soundPlayer.stopSound);
      this.soundPlayer.stopSound({paths:[localSoundPath]});
      this.closeWin();
    },
    ...common.methods,
  },
};

</script>

<style lang="scss">
  @import "../../../../assets/style/var.scss";
  .van-nav-bar{
    background: $default-bgc !important;
  }
</style>
